//
//  TYHHTTPFacade.h
//  OpenPractice
//
//  Created by tanyuehong on 7/7/18.
//  Copyright © 2018年  lijinghua. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^completeBlock)(NSError *error, NSDictionary *data);

@interface TYHHTTPFacade : NSObject

+ (void)doHttpRequest:(NSString *)url parms:(NSDictionary *)parms completeBlock:(completeBlock)block;

+ (void)doHttpRequest:(NSString *)url parms:(NSDictionary *)parms headers:(NSDictionary *)headers completeBlock:(completeBlock)block;

+ (void)doGetHttpRequest:(NSString *)url parms:(NSDictionary *)parms completeBlock:(completeBlock)block;

+ (void)doGetHttpRequest:(NSString *)url parms:(NSDictionary *)parms headers:(NSDictionary *)headers completeBlock:(completeBlock)block;

@end
